package com.liu.item.feign.api;

import com.liu.shop.common.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "shop-goods", path = "/goods/goods")
public interface GoodsService {

    // 调用商品模块，查询商品的详细信息
    @GetMapping("/getGoodsVoById/{id}")
    public GoodsVo getGoodsVoById(@PathVariable("id") Integer id);
}
